package com.xhorse.lockplatform.model;

import com.xhorse.lockplatform.comm.model.BaseId;

import java.util.Date;

public class XhLanguagePack extends BaseId{

	private Integer original_description_id;

	private Integer language_id;

	private String version;

	private Date created_at;

	private Date updated_at;

	private String description;

	public Integer getOriginal_description_id() {
		return original_description_id;
	}

	public void setOriginal_description_id(Integer original_description_id) {
		this.original_description_id = original_description_id;
	}

	public Integer getLanguage_id() {
		return language_id;
	}

	public void setLanguage_id(Integer language_id) {
		this.language_id = language_id;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Date getCreated_at() {
		return created_at;
	}

	public void setCreated_at(Date created_at) {
		this.created_at = created_at;
	}

	public Date getUpdated_at() {
		return updated_at;
	}

	public void setUpdated_at(Date updated_at) {
		this.updated_at = updated_at;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description == null ? null : description.trim();
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		if (this == obj) {
			return true;
		}
		if (obj instanceof XhLanguagePack) {
			XhLanguagePack xhLanguagePack = (XhLanguagePack) obj;
			if (xhLanguagePack.original_description_id
					.equals(this.original_description_id)
					&& xhLanguagePack.language_id.equals(this.language_id)
					&& xhLanguagePack.description.equals(this.description)) {
				return true;
			}
		}

		return false;
	}

	@Override
	public String toString() {
		return "XhLanguagePack [id=" + id + ", original_description_id="
				+ original_description_id + ", language_id=" + language_id
				+ ", version=" + version + ", created_at=" + created_at
				+ ", updated_at=" + updated_at + ", description=" + description
				+ "]";
	}

}